package com.lagou;

public class Coder {
    private int id;
    private int salary;

    public Coder(int id, int salary) {
        this.id = id;
        this.salary = salary;
    }

    public Coder() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getSalary() {
        return salary;
    }

    public void setSalary(int salary) {
        this.salary = salary;
    }
    public void work(){
        System.out.println("工号为"+getId()+"基本工资为"+getSalary()+"的程序员方便正在努力的写着代码......");
    }
}
